package fucai.com.fucai.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by itte on 2015/12/9.
 */
public class AppUtils {
    private static Toast mToast = null;

    public static void showToastMessage(Context context, final String message, int duration)
    {
        try
        {
            if (mToast == null)
            {
                mToast = Toast.makeText(context, message, duration);
            } else
            {
                mToast.setText(message);
                mToast.setDuration(duration);
            }
            mToast.show();
        } catch (Exception e)
        {
            return;
        }
    }
}
